﻿using LJLib.Net.SPI.Com;
using System.Collections.Generic;

namespace PhoneUI.Com
{
    public sealed class PowerCheckRequest : ILJTokenRequest<PowerCheckResponse>
    {
        public string token { get; set; }
        /// <summary>
        /// 待检验的权限ID
        /// </summary>
        public List<int> funcids { get; set; }
        public string GetApiName()
        {
            return "PowerCheck";
        }
    }

    public sealed class PowerCheckResponse : LJResponse
    {
        /// <summary>
        /// 指示对应权限是否有权限
        /// </summary>
        public List<bool> hasPower { get; set; }
        /// <summary>
        /// 没有权限的具体原因
        /// </summary>
        public List<string> tips { get; set; }
    }
}